.goods_detail {
  swiper {
    width: 100vw;
    height: 40vh;
    text-align: center;
    // background-color: red;

    swiper-item {
      width: 100%;

      image {
        width: 70%;
      }
    }
  }
}

.goods_price {
  padding: 15rpx;
  font-size: 32rpx;
  color: var(--themeColor);
  font-weight: 600;
}

.goods_name_wrap {
  display: flex;
  border-top: 5rpx solid #dedede;
  border-bottom: 5rpx solid #dedede;
  // 上下
  padding: 10px 0;

  .goods_name {
    flex: 5;
    font-size: 30rpx;
    color: #000;
    // 左右
    padding: 0 10px;

    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .goods_collect {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1rpx solid #dedede;

    .icon-shoucang {
      color: orangered;
    }
  }
}

.goods_info {
  .goods_info_title {
    padding: 20rpx;
    font-size: 32rpx;
    color: var(--themeColor);
    font-weight: 600;
  }

  .goods_info_content {}
}

// 底部工具
.btm_tool {
  border: 1rpx solid #ccc;
  position: fixed;
  left: 0;
  bottom: 0;
  background-color: #fff;
  width: 100%;
  height: 90rpx;
  display: flex;

  // 每一项
  .tool_item {
    flex: 1;
    text-align: center;
    font-size: 24rpx;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    button {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
    }

    // 加入购物车
    &.btn_cart {
      flex: 2;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-size: 30rpx;
      font-weight: 600;
      background-color: #ffa500;
      color: #fff;

    }

    // 立即购买
    &.btn_buy {
      flex: 2;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      font-size: 30rpx;
      font-weight: 600;
      background-color: #eb4450;
      color: #fff;

    }
  }
}

// 购物车显示
.cartBox {

  // 购物车数量
  .cartCount {
    width: 30rpx;
    height: 30rpx;
    border-radius: 50%;
    background-color: red;
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    line-height: 30rpx;
    color: #fff;
    z-index: 2;
  }

  // 动画球
  .ball {
    width: 30rpx;
    height: 30rpx;
    border-radius: 50%;
    background-color: red;
    position: absolute;
    top: 0rpx;
    right: 0rpx;
    z-index: 1;
  }

}